//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

import java.util.Scanner;

public class java_7_28 {
    public java_7_28() {
    }

    public static void main(String[] args) {
        System.out.println("请输入一个数");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int count = 0;
        System.out.print("偶数位二进制为：");
        int tmp1 = num;

        int tmp2;
        for (tmp2 = num << 1; count < 16; ++count) {
            if ((tmp1 & Integer.MIN_VALUE) == Integer.MIN_VALUE) {
                System.out.print('1');
            } else {
                System.out.print('0');
            }

            tmp1 <<= 2;
        }

        System.out.println();
        System.out.print("奇数位二进制为：");

        for (count = 0; count < 16; ++count) {
            if ((tmp2 & Integer.MIN_VALUE) == Integer.MIN_VALUE) {
                System.out.print('1');
            } else {
                System.out.print('0');
            }
            tmp2 <<= 2;
        }

    }

    public static void main6(String[] args) {
        int n = 0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入原始密码");
        int a = scanner.nextInt();
        System.out.println("请输入你刚才设置的密码");

        while (n < 3) {
            int code = scanner.nextInt();
            if (a == code) {
                System.out.println("登陆成功");
                break;
            }

            System.out.println("密码错误，请重新输入");
            ++n;
        }

        if (n == 3) {
            System.out.println("三次密码均错误，退出程序");
        }

    }

    public static void main5(String[] args) {
        System.out.println("请输入一个整数");
        Scanner scanner = new Scanner(System.in);

        for (int num = scanner.nextInt(); num != 0; num /= 10) {
            System.out.print(num % 10 + " ");
        }

    }

    public static void main4(String[] args) {
        System.out.println("输入一个整数");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();

        for (int i = 1; i <= num; ++i) {
            for (int j = 1; j <= i; ++j) {
                System.out.print(j + "*" + i + "=" + i * j + " ");
            }

            System.out.println();
        }

    }

    public static void main3(String[] args) {
        Scanner scan = new Scanner(System.in);

        while (scan.hasNextInt()) {
            int num = scan.nextInt();

            for (int i = 1; i <= num; ++i) {
                for (int j = 1; j <= num; ++j) {
                    if (i != j && i + j != num + 1) {
                        System.out.print(' ');
                    } else {
                        System.out.print('*');
                    }
                }

                System.out.print('\n');
            }
        }

    }

    public static void main2(String[] args) {

        System.out.println("请输入一个三位数：");
        Scanner scanner = new Scanner(System.in);
        int number = scanner.nextInt();
        int tmp = 0;
        int tmp1 = 0;
        int mul = 0;
        for (int j = 0; j <= number; j++) {
            int sum = 0;
            tmp = j;
            while (tmp != 0) {
                tmp1 = tmp % 10;
                mul = tmp1 * tmp1 * tmp1;
                tmp /= 10;
                sum += mul;
            }
            if (sum == j) {
                System.out.println(j);
            }
        }


    }

    public static void main1(String[] args) {
        double sum = 0.0;

        for (int i = 1; i <= 100; ++i) {
            if (i % 2 == 0) {
                sum -= 1.0 / (double) i;
            } else {
                sum += 1.0 / (double) i;
            }
        }

        System.out.println(sum);
    }
}
